import request from '@/utils/request'
export const newsList = (data) => {
  return request({
    url: '/index/news/list',
    method: 'post',
    data
  })
}
export const newsQuery = (data) => {
  return request({
    url: `/system/news/query/${data}`,
    method: 'get',
  })
}
/******洗衣小常识****/
export const knowledgeQueryLast = (data) => {
  return request({
    url: `/index/knowledge/queryLast`,
    method: 'get',
  })
}
/******新增保存企业认证****/
export const certificationAdd = (data) => {
  return request({
    url: `/system/certification/add`,
    method: 'post',
    data
  })
}
/******店铺详情****/
export const storeDetailsId = (id) => {
  return request({
    url: `/converged/store/${id}`,
    method: 'get',
  })
}
/******店铺优惠卷****/
export const systemCouponList = (data) => {
  return request({
    url: `/system/store/coupon/list`,
    method: 'post',
    data
  })
}
/********新手教程************/
export const tutoriaList = (data) => {
  return request({
    url: `/index/tutorial/list`,
    method: 'post',
    data
  })
}
/*********查询店铺轮播图管理列表************/
export const carouselList = (data) => {
  return request({
    url: `/index/store/carousel/list`,
    method: 'post',
    data
  })
}
/*******加盟申请记录*********/
export const certificationUserList = (data) => {
  return request({
    url: `/system/certification/userList`,
    method: 'post',
    data
  })
}
/*******团体卡申请记录*********/
export const groupList = (data) => {
  return request({
    url: `/hema/group/list`,
    method: 'post',
    data
  })
}
/****开通会员*****/
export const customerActivateMembership = (data) => {
  return request({
    url: `/converged/customer/activateMembership`,
    method: 'post',
    data
  })
}
/****根据店铺id查询店铺优惠券列表*****/
export const couponListByStoreId = (data) => {
  return request({
    url: `/converged/customer/listByStoreId`,
    method: 'post',
    data
  })
}
/****根据商店id查询订单评论列表*****/
export const commentListStoreComment = (data) => {
  return request({
    url: `/converged/customer/reviewListByShop`,
    method: 'get',
    data
  })
}
/****根据商店id查询订单评论列表*****/
export const commentListImageComment = (data) => {
  return request({
    url: `/system/comment/listImageComment`,
    method: 'post',
    data
  })
}
/****用户领取优惠券*****/
export const couponAdd = (data) => {
  return request({
    url: `/system/coupon/add`,
    method: 'post',
    data
  })
}
/****认证详情信息查询*****/
export const certificationDetail = (id) => {
  return request({
    url: `/system/certification/detail/${id}`,
    method: 'get',
  })
}
/****洗衣*****/
export const knowledgeList = (data) => {
  return request({
    url: `/system/knowledge/list`,
    method: 'post',
    data
  })
}
/****根据店铺ID查询加盟审核状态*****/
export const certificationAuditStatus = (storeId) => {
  return request({
    url: `/system/certification/auditStatus/${storeId}`,
    method: 'get',
  })
}

// export const certificationAdd = (data) => {
//   return request({
//     url: `/system/certification/add`,
//     method: 'post',
//     data
//   })
// }
